#!/usr/bin/python
CSS_TEMPLATE = """.%s%s .facecontents {
    background-image: url("%s%s.svg");
}"""

"TODO(doughtie):encode the svg files inline as: background: url(data:image/svg+xml;base64,[data]);"
VAL_STR = ['0', 'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K'];
SUIT_STR = ['clubs', 'spades', 'hearts', 'diamonds'];
SUIT_CHAR = ['C', 'S', 'H', 'D'];
for suit in range(0,4):
  for val in range(1,14):
    print CSS_TEMPLATE % (SUIT_STR[suit], VAL_STR[val],VAL_STR[val],SUIT_CHAR[suit])

"special handling for jokers"
for suit in range(0,3):
  print ".%s%s .facecontents," % (SUIT_STR[suit], 'JK')

print """.%s%s .facecontents {
  background-image: url("JK.svg");
}""" % (SUIT_STR[3], 'JK')

